package com.selenium.test.cases.pages.edu;

import org.openqa.selenium.By;

import com.selenium.test.base.Page;
import com.selenium.test.util.ISeleniumUtil;

public class HomePage extends Page{
	/*--------------------1. page defined here--------------------------------*/
	//header
	public static final By HOME_HEADER_TEXT_TITLE = By.className("navbar-brand");
	public static final By HOME_HEADER_TEXT_WELCOME = By.className("navbar-text");
	public static final By HOME_HEADER_BUTTON_SIGN_OUT = By.xpath("html/body/div[1]/div[1]/div/div/div/div/button");
	
	//body
	
	//public static final By HOME_BODY_TEXT_OPPYIONS = By
	
	
	
	
	
	//footer
	public static final By HOME_FOOTER_TEXT_COPYRIGHT = By.xpath("html/body/footer/div/p");
	
	public HomePage(ISeleniumUtil seleniumUtil) {
		super(seleniumUtil);
	}
	
	public void waitForPageToLoad(){
		super.waitForPageToLoad();
		seleniumUtil.waitOnElements(new By[]{
				HOME_HEADER_TEXT_TITLE,
				HOME_HEADER_TEXT_WELCOME,
				HOME_HEADER_BUTTON_SIGN_OUT,
				HOME_FOOTER_TEXT_COPYRIGHT
		});
	}
	
}

